<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/4/6
 * Time: 2:34 下午
 * description: article-category.php
 * 文章分类
 */
?>

{{--引入本地样式--}}
<link rel="stylesheet" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
<script src="/static/bootstrap-4.6.1-dist/js/bootstrap.js"></script>
<meta name="referrer" content="no-referrer">

<h2>分类添加页面</h2>

<form role="form" method="post" action="addCategory" enctype="multipart/form-data">
    @csrf
    <div class="form-group">
        <label for="name">Title</label>
        <input type="text" class="form-control" name="title"
               placeholder="请输入分类名称" required>
    </div>
    <div class="form-group">
        <label for="name">Parent</label>
        <select name="" id="">
            <option value="">请选择分类</option>
            @foreach($parent as $value)
                <option value="{{$value->id}}">{{$value->name}}</option>
            @endforeach
        </select>
    </div>
    <div class="form-group">
        <label for="name">Logo</label>
        <input type="file" class="form-control" name="image"
               placeholder="请输入图片" required>
    </div>
    <div class="form-group">
        <label for="name">Sort</label>
        <input type="number" class="form-inline" name="sort"
               placeholder="请输入排序">
    </div>
    <div class="form-group">
        <label  for="name">Status</label>
        <input type="radio" class="form-inline" name="status" value="1">显示
        <input type="radio" class="form-inline" name="status" value="2">隐藏
    </div>

    <button type="submit" class="btn btn-default">提交</button>
</form>
